package org.cangku.controller;

import org.cangku.dao.RkfenleiDao;
import org.cangku.entity.Rkfenlei;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/rkfenlei")
public class RkfenleiController {
    @Autowired
    private RkfenleiDao rkfenleiDao;

    @RequestMapping("/queryjin")
    @ResponseBody
    public List<Rkfenlei> queryjin(){
        return rkfenleiDao.queryJin();
    }

    @RequestMapping("/queryAll")
    @ResponseBody
    public List<Rkfenlei> queryAll(){
        return rkfenleiDao.queryAll();
    }
}
